//
//  LDBottomBtnView.swift
//  DingDongZP
//
//  Created by 三秒文化 on 2016/10/18.
//  Copyright © 2016年 51ledian.com. All rights reserved.
//

import UIKit

class LDBottomBtnView: UIView {

    var title:String? {
        didSet{
        
            actionBtn?.setTitle(title, forState: UIControlState.Normal)
        }
    }
    
    var actionBtn:UIButton?
    override init(frame:CGRect) {
        
        super.init(frame: frame)
        
        actionBtn = UIButton.setDetailsBtn("＋ 期望职位", picName: nil, btnBackColor: LDGolbalColor.Green, titleColor: LDFontColor.White)
        addSubview(actionBtn!)
        
        actionBtn!.snp_makeConstraints { (make) in
            
            make.centerY.equalTo(self)
            make.left.equalTo(LDMargin_V*5)
            make.right.equalTo(-LDMargin_V*5)
            make.height.equalTo(45)
        }
    }
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
